package Java2Test.dynamicproxy;

public class BigStar implements Star, Life {
    public static void main(String[] args) {

    }

    private String name;

    public BigStar() {
    }

    public BigStar(String name) {
        this.name = name;
    }

    @Override
    public String sing(String name) {
        System.out.println(this.name + "正在唱" + name);
        return "谢谢";
    }

    @Override
    public void dance() {
        System.out.println(this.name + "正在跳舞");
    }

    /**
     * 获取
     *
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     *
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    public String toString() {
        return "BigStar{name = " + name + "}";
    }

    @Override
    public String eat(String name) {
        System.out.println(this.name + "正在吃" + name);
        return "吃饱了";
    }

    @Override
    public void sleep() {
        System.out.println(this.name + "去睡觉了");
    }
}
